
<% @page_title = "#{Settings.short_title} - #{@page.title}" %>

<% if Settings.lolspeak == "1" %>
   <div class="post">
      <h3><%= @page.title.to_lolspeak %></h3>
      <p><%= @page.body.to_lolspeak %><p>
   </div>
<% else %>
   <div class="post">
      <h3><%= @page.title %></h3>
      <p><%= @page.body %><p>
   </div>
<% end %>

<% content_for :second_column do %>
   <% unless @page.children.empty? -%>
   <div class='section'>
      <h4>Sub-Pages</h4>
      <ul>
         <% @page.children.each do |page| -%>
         <li><%= link_to page.title, :action => "show", :id => page %></li>
         <% end -%>
      </ul>
   </div>
   <% end -%>
   
   <div class="section">
      <span style="float: left; margin-right: 4px;"><%= image_tag @page.author.photo(:small) %></span>
      <h4><%= @page.author.name %></h4>
      <small><%= @page.author.title %></small><br/>
      <%= enkode_mail( @page.author.email, "Email", "Email #{@page.author.name}", "Re: #{@page.title}" ) %>
   </div>
   
   <div class="section">
      <h4>Page Tags</h4>
      <ul>
         <% @page.tags.each do |tag| %>
            <li><%= tag %></li>
         <% end %>
      </ul>
   </div>
<% end %>